﻿<%@ Page Title="" Language="C#" MasterPageFile="~/POS/POS.Master" AutoEventWireup="true" CodeBehind="Spu.aspx.cs" Inherits="Me.Amon.OMS.Spu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="text-align: right">
        <asp:Button ID="BnAppendCat" runat="server" Text="添加目录" OnClick="BnAppendCat_Click" />
        <asp:Button ID="BnAppendSpu" runat="server" Text="添加商品" OnClick="BnAppendSpu_Click" />
        <asp:HiddenField ID="HfPage" runat="server" Value="0" />
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 200px" valign="top">
                        <asp:TreeView ID="TvCats" runat="server" ImageSet="Arrows" Width="200px" OnSelectedNodeChanged="TvCats_SelectedNodeChanged">
                            <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                            <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
                            <ParentNodeStyle Font-Bold="False" />
                            <SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
                        </asp:TreeView>
                    </td>
                    <td align="center" valign="top">
                        <table border="0" cellpadding="4" cellspacing="0" class="data_list" width="720">
                            <tr class="data_head">
                                <th style="width: 80px;">
                                    货号
                                </th>
                                <th>
                                    品名
                                </th>
                                <th>
                                    规格
                                </th>
                                <th>
                                    型号
                                </th>
                                <th>
                                    品牌
                                </th>
                                <th style="width: 60px;">
                                    规格数量
                                </th>
                                <th style="width: 60px;">
                                    操作
                                </th>
                            </tr>
                            <asp:Repeater ID="RpSpus" runat="server">
                                <ItemTemplate>
                                    <tr class="data_rowd">
                                        <td>
                                            <a href="UpdateSpu.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>" title="点击查看详情">
                                                <%# Eval("code") %>
                                            </a>
                                        </td>
                                        <td>
                                            <%# Eval("name") %>
                                        </td>
                                        <td>
                                            <%# Eval("spec") %>
                                        </td>
                                        <td>
                                            <%# Eval("mode") %>
                                        </td>
                                        <td>
                                            <%# Eval("brand") %>
                                        </td>
                                        <td align="right">
                                            <a href="Sku.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>" title="查看规格详情">
                                                <%# Eval("cqty") %>
                                            </a>
                                        </td>
                                        <td align="center">
                                            <a href="UpdateSpu.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>" title="添加规格">添加</a>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr class="data_rowa">
                                        <td>
                                            <a href="UpdateSpu.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>">
                                                <%# Eval("code") %>
                                            </a>
                                        </td>
                                        <td>
                                            <%# Eval("name") %>
                                        </td>
                                        <td>
                                            <%# Eval("spec") %>
                                        </td>
                                        <td>
                                            <%# Eval("mode") %>
                                        </td>
                                        <td>
                                            <%# Eval("brand") %>
                                        </td>
                                        <td align="right">
                                            <a href="Sku.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>" title="查看规格详情">
                                                <%# Eval("cqty") %>
                                            </a>
                                        </td>
                                        <td align="center">
                                            <a href="UpdateSpu.aspx?cat=<%# Eval("cat") %>&spu=<%# Eval("id") %>" title="添加规格">添加</a>
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                            </asp:Repeater>
                            <tr>
                                <td colspan="7" align="right">
                                    <asp:LinkButton ID="HlHome" runat="server" OnClick="HlHome_Click">首页</asp:LinkButton>
                                    <asp:Label ID="LlPrev" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlPage1" runat="server" OnClick="HlPage1_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage2" runat="server" OnClick="HlPage2_Click">HyperLink</asp:LinkButton>
                                    <asp:LinkButton ID="HlPage3" runat="server" OnClick="HlPage3_Click">HyperLink</asp:LinkButton>
                                    <asp:Label ID="LlNext" runat="server">...</asp:Label>
                                    <asp:LinkButton ID="HlLast" runat="server" OnClick="HlLast_Click">尾页</asp:LinkButton>
                                    <asp:Label ID="LlPage" runat="server">HyperLink</asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
